package com.southwind.controller;


import com.southwind.form.RuleForm;
import com.southwind.service.TbAdminService;
import com.southwind.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author fjh
 * @since 2024-01-08
 */
@RestController
@RequestMapping("/tbAdmin")
public class TbAdminController {

    @Autowired
    private TbAdminService tbAdminService;

    @GetMapping("/login")
    public ResultVO login(RuleForm ruleForm) {
        ResultVO resultVO=this.tbAdminService.login(ruleForm);
        return resultVO;
    }
}

